.PHONY: proto rx tx txlinux json2pb clean

#GOOS = linux
#GOARCH = amd64 

proto:
		@rm -rf pkg/types
		protoc -I=api/proto --go_out=. api/proto/types.proto

tx:	proto
		@go build -o tx cmd/transmitter/main.go

rx:	proto
		@go build -o rx cmd/receiver/main.go

filesender:	proto
		@go build -o filesender cmd/filesender/main.go

txlinux: proto
		@go build -o tx cmd/transmitter/main.go

json2pb: proto
		@go build -o json2pb cmd/json2pb/main.go

clean:
	rm -rf pkg/types
	rm rx tx json2pb
